package com.identify.identifydrawings;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class HomeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        ImageView imagezidong = findViewById(R.id.zidongdingwei);
        imagezidong.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
          // TODO Auto-generated method stub
                //System.out.print("image click");
                Intent intent = new Intent(HomeActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
        ImageView imagecaijian = findViewById(R.id.caijiandingwei);
        imagecaijian.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(HomeActivity.this,ManualCutting.class);
                startActivity(intent);
            }
        });
        ImageView imageshuoming = findViewById(R.id.shiyongshuoming);
        imageshuoming.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(HomeActivity.this,ShuoMingActivity.class);
                startActivity(intent);
            }
        });
        ImageView imageshezhi = findViewById(R.id.shezhi);
        imageshezhi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(HomeActivity.this,ShezhiActivity.class);
                Intent intent1=getIntent();
                String username=intent1.getStringExtra("用户名");
                intent.putExtra("yonghuming",username);
                startActivity(intent);
            }
        });
    }
}
